#define _CRT_SECURE_NO_WARNINGS 1

#include"SwapListNode.h"
#include<iostream>

int main()
{
	int arr[4] = { 1 , 2 , 3 , 4 };
	ListNode* head = nullptr;
	ListNode* tmp = nullptr;
	for (int i = 4; i >= 1; --i)
	{
		tmp = new ListNode (i,tmp);
	}
	head = tmp;
	Solution s;
	head = s.swapPairs(head);
	while (head != nullptr)
	{
		std::cout << head->val << "   ";
		head = head->next;
	}

	return 0;
}